package com.example.kevin.functions;


import com.example.kevin.exception.AppException;

/**
 * Author: Kevin
 * Date: 2023/4/6 16:32
 */
public class ExceptionUtil {
    public static FunctionTest throwException(boolean flag) {
        return message -> {
            if (flag) {
                throw new AppException(message);
            }
        };
    }
}
